package org.xx.armory.swing.builders;

import org.xx.armory.swing.components.BorderType;

import static org.apache.commons.lang3.StringUtils.trimToEmpty;

public abstract class LayoutModelBuilder<T extends AbstractLayoutModel>
        extends ComponentModelBuilder<T> {
    private String title;
    private BorderType border;

    protected LayoutModelBuilder() {
        this.title = "";
    }

    public final String getTitle() {
        return trimToEmpty(this.title);
    }

    public final LayoutModelBuilder setTitle(
            String title
    ) {
        this.title = title;
        return this;
    }

    public final BorderType getBorder() {
        return this.border;
    }

    public final LayoutModelBuilder setBorder(
            BorderType border
    ) {
        this.border = border;
        return this;
    }
}
